{% extends "base.html" %}
{% block content %}
<script type="text/javascript" language="JavaScript">
<!--
function zliczaj_znaki(my_form)
{
if(my_form.tresc.value.length<=1900)
{
a=my_form.tresc.value.length;
b=1900;
c=b-a;
document.getElementById('ile').innerHTML= '('+c+')';
}
else
{
my_form.tresc.value = my_form.tresc.value.substring(0, 1900);
}}

//-->
</script>
<h2>Zakładam nowy projekt</h2>
<form action="/forum/nowy_projekt_akcja" method="post" enctype="multipart/form-data">
	pseudonim: <input type="text" name="pseudo" maxlength="30"/><br />
	e-mail: <input type="text" name="email" maxlength="40"/><br />
	hasło: <input type="password" name="haslo1" maxlength="10"/><br />
	hasło: <input type="password" name="haslo2" maxlength="10"/><br />
	avatar: <input type="file" name="avatar" size="40" /><br />
	<!--stopka: <textarea name="tresc" cols="30" rows="5" onkeyup="zliczaj_znaki(this.form)" onkeydown="zliczaj_znaki(this.form)"></textarea><br />
	<div id="ile">(1900)</div>-->
	KOdełe: <input type="text" name="kod" maxlength="3" /><img src="/forum/image" /><br />
	<input type="submit" value="Zakładam" />
</form>
<hr />
<form action="/contact/" method="POST">
{{ form.as_p }}
<input type="submit" value="Submit" />
</form>
{% endblock content %}